package entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description 返回结果类
 * @Date 2021/3/17 20:38
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Result {
    private boolean flag;
    private Integer code;
    private String message;
    private Object data;

    /***
     * 构造函数
     * Param: [flag, code, message]
     **/
    public Result(boolean flag, Integer code, String message) {
        this.flag = flag;
        this.code = code;
        this.message = message;
    }
}
